<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title id="title"></title>
	</head>
	<body>
		<div id="app"></div>
		<script>
			const title = document.getElementById('title')
			const agreementId = location.search.split('=')[1]
			const app = document.getElementById('app');
			const xhr = new XMLHttpRequest();
			xhr.open('GET', 'https://api-newtyj.taoyoujichina.com/api/unAuth/sys/agreement/getAgreement?agreementId=' +
				agreementId);
			xhr.mozSystem = true
			xhr.onload = () => {
				if (xhr.status === 200) {
					const {
						data: {
							agreementContext,
							name
						}
					} = JSON.parse(xhr.responseText);
					title.innerHTML = name
					app.innerHTML = agreementContext
				} else {
				}
			};
			xhr.onerror = function() {
			
			};
			xhr.send();
		</script>
	</body>
	<style></style>
</html>